<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
$attributes = array(
    'class' => 'control-label',
);

$orden = $orden[0];
?>

<div class="span9">

    <h2><?php echo $titulo; ?></h2>

    <?php echo get_message(); ?>

    <?php echo form_open(); ?>

    <div class="span4">
        <dl class="">
            <dt>Causa</dt>
            <dd><?php echo $orden->caratula . ' - ' . $orden->nroExpediente . ' - ' . $orden->juzgado . ' - ' . $orden->fiscalia; ?></dd>
            <dt>Fecha</dt>
            <dd><?php echo $orden->fecha; ?></dd>
            <dt>Demandado</dt>
            <dd><?php echo $orden->matricula . ' ' . $orden->nombre; ?></dd>
            <dt>Observación</dt>
            <dd><?php echo $orden->descripcion; ?></dd>
            <dt>Importe</dt>
            <dd><?php echo $orden->importe; ?></dd>
        </dl>
    </div>

    <div class="span6">
        <div class="control-group">
            <?php echo form_label('Banco', 'bancoId', $attributes); ?>
            <div class="controls">
                <?php
                echo form_dropdown('bancoId', $bancos, $pago['bancoId'], 'class="span11" id="bancoId"');
                ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Fecha', 'fecha', $attributes); ?>
            <div class="controls input-append">
                <?php
                echo form_input(array('class' => 'span5 date-picker', 'data-date-format' => 'dd/mm/yyyy', 'name' => 'fecha', 'type' => 'text', 'value' => $pago['fecha']));
                ?><span class="add-on"><i class="icon-calendar"></i></span>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Número de Cheque', 'nroCheque', $attributes); ?>
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'nroCheque', 'type' => 'text', 'value' => $pago['nroCheque'])); ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Número de Comprobante de Pago', 'nroCptePago', $attributes); ?>
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'nroCptePago', 'type' => 'text', 'value' => $pago['nroCptePago'])); ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Concepto', 'conceptoId', $attributes); ?>
            <div class="controls">
                <?php
                echo form_dropdown('conceptoId', $conceptos, $pago['conceptoId'], 'class="span11" id="conceptoId"');
                ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Beneficiario', 'beneficiario', $attributes); ?>
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'beneficiario', 'readonly' => 'readonly', 'type' => 'text', 'value' => $orden->nombre . ' (' . $orden->matricula. ')')); ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Moneda', 'moneda', $attributes); ?>
            <div class="controls">
                <?php
                echo form_dropdown('moneda', $moneda, $pago['moneda'], 'class="span11" id="moneda"');
                ?>
            </div>
        </div>
        <div class="control-group">
            <?php echo form_label('Importe', 'importe', $attributes); ?>
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'importe', 'readonly' => 'readonly', 'type' => 'text', 'value' => $orden->importe)); ?>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <?php echo form_input(array('class' => 'span11', 'name' => 'submit', 'type' => 'submit', 'value' => 'Guardar', 'class' => 'btn')); ?>
                <button type="button" onclick="window.location = '<?php echo base_url('subsidios'); ?>';" class="btn">Cancelar</button>
            </div>
        </div>
    </div>
    <?php echo form_close(); ?>

</div>